<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册失败</title>
    <style>
        body { font-family: Arial, sans-serif; max-width: 500px; margin: 0 auto; padding: 20px; }
        .error { color: red; line-height: 1.6; }
        a { color: #4CAF50; text-decoration: none; }
        a:hover { text-decoration: underline; }
    </style>
</head>
<body>
<h1>注册失败</h1>
<!-- 显示注册错误信息 -->
<div class="error">
    <%= request.getAttribute("errorMessage") != null ? request.getAttribute("errorMessage") : "" %>
</div>
<p><a href="${pageContext.request.contextPath}/user-register/register.jsp">返回注册页面</a></p>
</body>
</html>